
# while 循环

# n = 10
#
# while n >= 1:
#     print(f"n是大于等于1的，它等于：{n}")
#     n -= 1  # 9
#
# print("循环结束")

# 输入账号密码

raw_account = "张三"
raw_sec = "123456"


while True:
    acc = input("请输入账号：")
    sec = input("请输入密码：")

    if acc == raw_account and raw_sec == sec:
        print(f"欢迎：{acc}")
        break   # 跳出循环
    else:
        print("输入的账号或密码有误，请重新输入")


print("程序结束")
